<template lang="pug">
.examinebox
  el-dialog(title="商品审核" :visible="value" width="500px" @close="$emit('input',false)")
    el-form(:model="form")
      el-form-item(label="审核意见" label-width="100px")
        el-radio(v-model="form.approve" :label="true" border) 审核通过
        el-radio(v-model="form.approve" :label="false" border) 审核拒绝
      el-form-item(label="审核说明" label-width="100px")
        el-input(type="textarea" :rows="2" v-model="form.msg")
    div(slot="footer" class="dialog-footer")
      el-button(@click="$emit('input',false)") 取 消
      el-button(type="primary" @click="onSubmit") 确 定
</template>
<script>
export default {
  props:{
    value:{
      type:Boolean,
      default:false
    }
  },
  data() {
    return {
      form:{
        approve:true,
        msg:""
      }
    }
  },
  methods: {
    onSubmit() {
      this.$emit('onSub',this.form)
    }
  },
}
</script>
